package com.edu.bhu.admin.domain;

import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 地区对象 pre_area
 *
 * @author yutianyang
 * @date 2022-04-06
 */
public class PreArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区主键 */
    private Integer areaId;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String name;

    /** 父结点ID */
    @Excel(name = "父结点ID")
    private Integer parentid;

    /** 父结点名称 */
    @Excel(name = "父结点名称")
    private String parentname;

    /** 根结点ID */
    @Excel(name = "根结点ID")
    private Integer topid;

    /** 根结点名称 */
    @Excel(name = "根结点名称")
    private String topname;

    /** 区号 */
    @Excel(name = "区号")
    private String districtcode;

    /** 证件号 */
    @Excel(name = "证件号")
    private String idcardcode;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String areacode;

    /** 拼音全拼 */
    @Excel(name = "拼音全拼")
    private String code;

    /** 首字母简写 */
    @Excel(name = "首字母简写")
    private String shortcode;

    /** hasaqi标识 */
    @Excel(name = "hasaqi标识")
    private Integer hasaqi;

    /** 树的深度 */
    @Excel(name = "树的深度")
    private Integer depth;

    /** 状态 1.正常 2.低风险 3.中风险 4.高风险 */
    @Excel(name = "状态 1.正常 2.低风险 3.中风险 4.高风险")
    private Long status;

    /** 子区域列表 */
    private List<PreArea> subPreArea;

    public List<PreArea> getSubPreArea() {
        return subPreArea;
    }

    public void setSubPreArea(List<PreArea> subPreArea) {
        this.subPreArea = subPreArea;
    }

    public void setAreaId(Integer areaId)
    {
        this.areaId = areaId;
    }

    public Integer getAreaId()
    {
        return areaId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setParentid(Integer parentid)
    {
        this.parentid = parentid;
    }

    public Integer getParentid()
    {
        return parentid;
    }
    public void setParentname(String parentname)
    {
        this.parentname = parentname;
    }

    public String getParentname()
    {
        return parentname;
    }
    public void setTopid(Integer topid)
    {
        this.topid = topid;
    }

    public Integer getTopid()
    {
        return topid;
    }
    public void setTopname(String topname)
    {
        this.topname = topname;
    }

    public String getTopname()
    {
        return topname;
    }
    public void setDistrictcode(String districtcode)
    {
        this.districtcode = districtcode;
    }

    public String getDistrictcode()
    {
        return districtcode;
    }
    public void setIdcardcode(String idcardcode)
    {
        this.idcardcode = idcardcode;
    }

    public String getIdcardcode()
    {
        return idcardcode;
    }
    public void setAreacode(String areacode)
    {
        this.areacode = areacode;
    }

    public String getAreacode()
    {
        return areacode;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setShortcode(String shortcode)
    {
        this.shortcode = shortcode;
    }

    public String getShortcode()
    {
        return shortcode;
    }
    public void setHasaqi(Integer hasaqi)
    {
        this.hasaqi = hasaqi;
    }

    public Integer getHasaqi()
    {
        return hasaqi;
    }
    public void setDepth(Integer depth)
    {
        this.depth = depth;
    }

    public Integer getDepth()
    {
        return depth;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("areaId", getAreaId())
            .append("name", getName())
            .append("parentid", getParentid())
            .append("parentname", getParentname())
            .append("topid", getTopid())
            .append("topname", getTopname())
            .append("districtcode", getDistrictcode())
            .append("idcardcode", getIdcardcode())
            .append("areacode", getAreacode())
            .append("code", getCode())
            .append("shortcode", getShortcode())
            .append("hasaqi", getHasaqi())
            .append("depth", getDepth())
            .append("status", getStatus())
            .toString();
    }
}
